//
//  ImageCell.m
//  SinaNews
//
//  Created by qianfeng on 15-6-16.
//  Copyright (c) 2015年 耿宁. All rights reserved.
//

#import "ImageCell.h"
#import "UIImageView+WebCache.h"
@implementation ImageCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)showDataWithModel:(NewsModel *)model {
    NSMutableArray *arr=[[NSMutableArray alloc]init];
    
  
    for (NSDictionary *dict in model.list) {
        [arr addObject:dict[@"pic"]];
        //NSLog(@"$$$$$44%@",arr);
    }
    [self.picView0 sd_setImageWithURL:[NSURL URLWithString:arr[0]] placeholderImage:nil];
    [self.picView1 sd_setImageWithURL:[NSURL URLWithString:arr[1]] placeholderImage:nil];
    [self.picView2 sd_setImageWithURL:[NSURL URLWithString:arr[2]] placeholderImage:nil];
    self.titleLabel.text=model.title;
    self.commentLabel.text=model.comment.stringValue;

}

@end
